 package cn.com.common;
 
 public class Poke
 {
  
   private int flag;  //综合值
 
   public int getFlag()
   {
     return this.flag;
   }
 
   public Poke(int flag)
   {
     this.flag = flag;
   }
 
   public int getShap()
   {
     return this.flag >> 8;
   }
 
   public int getValue() 
   {
     return this.flag & 0xFF;
   }
 
   public String getLogShap()
   {
     String str = "";
     switch (getShap())
     {
     case 4:
       str = "黑桃";
       break;
     case 3:
       str = "红桃";
       break;
     case 2:
       str = "梅花";
       break;
     case 1:
       str = "方块";
     }
 
     return str;
   }
 }

